<?php
namespace Index\Controller;
use Common\Controller\CoreController;
class WxOauthController extends CoreController {


public function __construct()
    {
          
          parent::__construct();  //这句必须有   
		 
          
          if(empty($_SESSION['user_info']))
		  {
			 
		      header('Location:'.U('Index/index',array('backURL'=>CONTROLLER_NAME.'-'.ACTION_NAME)));	

             exit;			 
			  
		  }
    }
 
}